home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / ScrolledWP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  3.3 KB  |  134 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: ScrolledWP.h,v $ $Revision: 1.14 $ $Date: 92/05/14 12:56:52 $ */
  6. /*
  7. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8. #ifndef _XmScrolledWindowP_h
  9. #define _XmScrolledWindowP_h
  10.  
  11. #include <Xm/ManagerP.h>
  12. #include <Xm/ScrolledW.h>
  13.  
  14. #include <Xm/ScrollBar.h>
  15. #include <Xm/DrawingA.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /* New fields for the ScrolledWindow widget class record */
  22. typedef struct {
  23.      int mumble;   /* No new procedures */
  24. } XmScrolledWindowClassPart;
  25.  
  26. /****************
  27.  *
  28.  * Class record declaration
  29.  *
  30.  ****************/
  31. typedef struct _XmScrolledWindowClassRec {
  32.     CoreClassPart    core_class;
  33.     CompositeClassPart  composite_class;
  34.     ConstraintClassPart constraint_class;
  35.     XmManagerClassPart  manager_class;
  36.     XmScrolledWindowClassPart    swindow_class;
  37. } XmScrolledWindowClassRec;
  38.  
  39. externalref XmScrolledWindowClassRec xmScrolledWindowClassRec;
  40.  
  41. /****************
  42.  *
  43.  * Scrolled Window instance structure.
  44.  *
  45.  ****************/
  46. typedef struct {
  47.  
  48.    int vmin;          /*  slider minimum coordiate position     */
  49.    int vmax;          /*  slider maximum coordiate position     */
  50.    int vOrigin;          /*  slider edge location                  */
  51.    int vExtent;          /*  slider size                           */
  52.  
  53.    int hmin;          /*  Same as above for horizontal bar.     */
  54.    int hmax;
  55.    int hOrigin;
  56.    int hExtent;
  57.  
  58.    Position hsbX,hsbY;
  59.    Dimension hsbWidth,hsbHeight;    /* Dimensions for the horiz bar */
  60.  
  61.    Position vsbX,vsbY;
  62.    Dimension vsbWidth,vsbHeight;    /* Dimensions for the vertical bar */
  63.  
  64.    Dimension    GivenHeight, GivenWidth;
  65.  
  66.    Dimension    AreaWidth,AreaHeight;
  67.    Dimension    WidthPad,HeightPad;
  68.    Position    XOffset, YOffset;
  69.  
  70.    Dimension    pad;
  71.  
  72.    Boolean    hasHSB;
  73.    Boolean    hasVSB;
  74.    Boolean    InInit;
  75.    Boolean    FromResize;
  76.  
  77.    unsigned char    VisualPolicy;
  78.    unsigned char    ScrollPolicy;
  79.    unsigned char    ScrollBarPolicy;
  80.    unsigned char    Placement;
  81.    
  82.    XmScrollBarWidget       hScrollBar;
  83.    XmScrollBarWidget       vScrollBar;
  84.    XmDrawingAreaWidget     ClipWindow;
  85.    Widget                  WorkWindow;
  86.    
  87.    XtCallbackList       traverseObscuredCallback;
  88. } XmScrolledWindowPart;
  89.  
  90.  
  91. /************************************************************************
  92.  *                                    *
  93.  * Full instance record declaration                    *
  94.  *                                    *
  95.  ************************************************************************/
  96.  
  97. typedef struct _XmScrolledWindowRec {
  98.     CorePart        core;
  99.     CompositePart   composite;
  100.     ConstraintPart constraint;
  101.     XmManagerPart   manager;
  102.     XmScrolledWindowPart   swindow;
  103. } XmScrolledWindowRec;
  104.  
  105. #define DEFAULT_HEIGHT 20
  106. #define DEFAULT_WIDTH 20
  107.  
  108.  
  109. /********    Private Function Declarations    ********/
  110. #ifdef _NO_PROTO
  111.  
  112. extern char * _XmGetRealXlations() ;
  113. extern void _XmInitializeScrollBars() ;
  114.  
  115. #else
  116.  
  117. extern char * _XmGetRealXlations( 
  118.                         Display *dpy,
  119.                         _XmBuildVirtualKeyStruct *keys,
  120.                         int num_keys) ;
  121. extern void _XmInitializeScrollBars( 
  122.                         Widget w) ;
  123.  
  124. #endif /* _NO_PROTO */
  125. /********    End Private Function Declarations    ********/
  126.  
  127.  
  128. #ifdef __cplusplus
  129. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  130. #endif
  131.  
  132. #endif /* _XmScrolledWindowP_h */
  133. /* DON'T ADD STUFF AFTER THIS #endif */
  134.